<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Login extends CI_Controller {
	function __construct() {
		parent::__construct();
		$this->load->helper('ssl');
		$this->load->library('headassets');
		$this->load->model('admin/admin_model');
	}
	
	function index() {
		$admin_username = $this->input->post('admin_user');
		$admin_password = $this->input->post('admin_pass');
		if ($this->admin_model->login($admin_username,$admin_password)){
			redirect(admin_url('dashboard/admin/index'));
		}
		$this->load->view('admin/login');
	}
	
	function login() {
		
	}
	
	function logout() {
	}
}